From 3fb4b079e19082d7960d67ee0f8153af87aabfd8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 19 Jan 2017 12:30:23 +0100 Subject: [PATCH] button: Don't explicitly show child widgets --- gtk/gtkbutton.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 448650dfc6..7ac14e54bd 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -683,7 +683,6 @@ gtk_button_new_from_icon_name (const gchar *icon_name, image = gtk_image_new_from_icon_name (icon_name, size); button = g_object_new (GTK_TYPE_BUTTON, NULL); - gtk_widget_show (image); gtk_container_add (GTK_CONTAINER (button), image); return button; @@ -1164,7 +1163,6 @@ gtk_button_set_label (GtkButton *button, gtk_label_set_use_underline (GTK_LABEL (child), priv->use_underline); gtk_label_set_mnemonic_widget (GTK_LABEL (child), GTK_WIDGET (button)); } - gtk_widget_show (child); gtk_container_add (GTK_CONTAINER (button), child); gtk_style_context_remove_class (context, "image-button"); gtk_style_context_add_class (context, "text-button"); @@ -1361,7 +1359,6 @@ gtk_button_set_icon_name (GtkButton *button, gtk_container_remove (GTK_CONTAINER (button), child); child = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON); - gtk_widget_show (child); gtk_container_add (GTK_CONTAINER (button), child); gtk_style_context_remove_class (context, "text-button"); gtk_style_context_add_class (context, "image-button"); -- 2.30.2